package com.my.coolq.strategy.message.model;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * 用户私聊消息
 * @author ch
 *
 */
public class UserMsg implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1641489315997888527L;

	/**
	 * 上报类型
	 */
	private String post_type;
	
	/**
	 * 消息类型
	 */
	private String message_type;
	
	/**
	 * 消息子类型，如果是好友则是 "friend"，如果从群或讨论组来的临时会话则分别是 "group"、"discuss"
	 */
	private String sub_type;
	
	/**
	 * 发送者 QQ 号
	 */
	private Long user_id;
	
	/**
	 * 消息内容
	 */
	private String message;

	public String getPost_type() {
		return post_type;
	}

	public void setPost_type(String post_type) {
		this.post_type = post_type;
	}

	public String getMessage_type() {
		return message_type;
	}

	public void setMessage_type(String message_type) {
		this.message_type = message_type;
	}

	public String getSub_type() {
		return sub_type;
	}

	public void setSub_type(String sub_type) {
		this.sub_type = sub_type;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}

}
